import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 28779
 * Date: 2023-03-19
 * Time: 9:00
 */

public class Test {
    public int year;
    public int month;
    public int day;
    public void setDay(int y, int m, int d){
        year = y;
        month = m;
        day = d;
    }
    public void printDate(){
        System.out.println(year + "/" + month + "/" + day);
    }


    public static void main(String[] args) {
// 构造三个日期类型的对象 d1 d2 d3
        Test d1 = new Test();
        Test d2 = new Test();
        Test d3 = new Test();
// 对d1，d2，d3的日期设置
        d1.setDay(2020,9,15);
        d2.setDay(2020,9,16);
        d3.setDay(2020,9,17);
// 打印日期中的内容
        d1.printDate();
        d2.printDate();
        d3.printDate();
    }
}
/*class Student{            //创建学生类
    public String name;   //成员变量
    public short age;
    public void DoClass(){ //成员方法
        System.out.println(name + " 在上课,年龄是 " + age);
    }
    public void DoHomework(){
        System.out.println(name + " 做作业，年龄是 " + age);
    }
}
public class Test{        //文件名为Test
    public static void main(String[] args) {
      Student student1 = new Student();
      student1.age = 18;
      student1.name = "xiaozhang";
      student1.DoClass();
      student1.DoHomework();

      Student student2 = new Student();
      student2.age = 20;
      student2.name = "xiaomei";
      student2.DoClass();
      student2.DoHomework();
    }
}*/


/*
public class Test {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextInt()) {
            int x = scanner.nextInt();
            int y = scanner.nextInt();
            Data data = new Data(x, y);
            System.out.println(data.getX() + data.getY());
        }
    }

}

class Data {

    private int x;
    private int y;

    public Data(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public int getX() {
        return x;
    }

    public int getY() {
        return y;
    }

}*/
